#include "EffectTechnique.h"
#include "Utility/Utility.h"

CD3DEffect::CD3DEffect( UINT32 dwID, ResourceHandle hHandle, EResourceType eResType )
	: CHardwareResource(dwID, hHandle, eResType)
{

}

CD3DEffect::~CD3DEffect()
{

}

void CD3DEffect::Release()
{
	ID3D10Effect *pEffect = GetHandle();
	SAFE_RELEASE(pEffect);

	CHardwareResource::Release();
}

ID3D10Effect* CD3DEffect::GetHandle()
{
	return static_cast<ID3D10Effect*>(m_hRealHandle);
}

